//
//  DownLoadTableViewCell.m
//  UI_A项目
//
//  Created by dlios on 15-1-20.
//  Copyright (c) 2015年 songCheng. All rights reserved.
//

#import "DownLoadTableViewCell.h"

@implementation DownLoadTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        [self creatSub];
    }
    return self;
}

- (void)creatSub
{

    self.label = [[UILabel alloc] initWithFrame:CGRectMake(120, 25, 160, 30)];
        self.label.backgroundColor = [UIColor redColor];
    self.label.numberOfLines = 0;
    self.label.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:self.label];
    [self.label release];
    
    
    self.tlabel = [[UILabel alloc] initWithFrame:CGRectMake(self.label.frame.origin.x, self.label.frame.origin.y + 60, self.label.frame.size.width, self.label.frame.size.height)];
    
    self.tlabel.font = [UIFont systemFontOfSize:14];
    
    self.tlabel.textColor = [UIColor lightGrayColor];
    
    self.tlabel.numberOfLines = 0;
    self.tlabel.backgroundColor = [UIColor blueColor];
    [self.contentView addSubview:self.tlabel];
    [_tlabel release];
    
    
    
    self.imageView1 = [[UIImageView alloc] initWithFrame:CGRectMake(5, 15, 100, 120)];
    
    self.imageView1.backgroundColor = [UIColor redColor];
    
    self.imageView1.layer.cornerRadius = 20;
    
    self.imageView1.layer.masksToBounds = YES;
    
    [self.contentView addSubview:self.imageView1];
    [self.imageView1 release];
    
    
    
    
    self.button = [UIButton buttonWithType:UIButtonTypeCustom];
    
    self.button.frame = CGRectMake(self.label.frame.origin.x + 180, self.label.frame.origin.y + 30, 50, 30);
    
    [self.button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    
    self.button.layer.cornerRadius = 5;
    
    self.button.layer.masksToBounds = YES;
    
    self.button.layer.borderWidth = 1;
    
    self.button.layer.borderColor = [UIColor redColor].CGColor;
    
    [self.button setTitle:@"删除" forState:UIControlStateNormal];
    
    [self.contentView addSubview:self.button];
    



}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
